package com.melo;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 公交站台之间的边
 * @Date 2025-05-25
 */
@Data
@AllArgsConstructor
public class Edge {

    /**
     * 边的一个点: 起点
     */
    private char startVertex;

    /**
     * 边的另外一个点: 终点
     */
    private char endVertex;

    /**
     * 边的权值
     */
    private int weight;

    @Override
    public String toString() {
        return "Edge [<" + startVertex + ", " + endVertex + ">= " + weight + "]";
    }

}
